export default {
  namespaced: true,
  state: {
    orders:[],
  },
  nowOrder:{
    code:'1111112456', // 订单编号
    items:[], // 订单商品
    contact:{
      name:'小明',
      tel:'1111111',
      address:'sssssssssss'
    },
    price:100
  },
  mutations: {
   setOrder(state, order){
     state.nowOrder = order
   },
   setNowOrderContact(state, contact){
     // 切换当前订单的联系人
     state.nowOrder.contact = contact
   }
  },
  actions: {}
}